package com.fuhan.mapper;

import com.fuhan.pojo.TempHumData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * @Author: Chao
 * @description:
 * @Date: 2021/3/11 17:44
 */
@Mapper
@Repository
public interface TempHumDataMapper {
    /**
     * 根据日期获取当前的全部数据
     * @param date
     * @return 当天的全部数据
     */
    List<TempHumData> getTempHumData(@Param("date") String date);

    /**
     * 向数据库插入数据
     * @param tempHumData
     * @return
     */
    int insertDate(TempHumData tempHumData);
}
